MemberDetail.fromJson constructor

MemberDetail.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MemberDetail.fromJson(Map<String, dynamic> json) {
  return MemberDetail(
    accountId: json['AccountId'] as String?,
    disabledReason:
        (json['DisabledReason'] as String?)?.toMemberDisabledReason(),
    emailAddress: json['EmailAddress'] as String?,
    graphArn: json['GraphArn'] as String?,
    invitedTime: timeStampFromJson(json['InvitedTime']),
    masterId: json['MasterId'] as String?,
    percentOfGraphUtilization: json['PercentOfGraphUtilization'] as double?,
    percentOfGraphUtilizationUpdatedTime:
        timeStampFromJson(json['PercentOfGraphUtilizationUpdatedTime']),
    status: (json['Status'] as String?)?.toMemberStatus(),
    updatedTime: timeStampFromJson(json['UpdatedTime']),
  );
}