'use strict';

const dataModel = require('./data-model-f9df493f.js');

const getUserInitials = (user) => `${user.firstName[0]}${user.lastName[0]}`;
const getUserFullName = (user) => `${user.firstName} ${user.lastName}`;
class User extends dataModel.DataModel {
  static decode(json) {
    return Object.assign(Object.create(User.prototype), json);
  }
}

exports.User = User;
exports.getUserFullName = getUserFullName;
exports.getUserInitials = getUserInitials;
