UserPendingChanges.fromJson constructor

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

Implementation

factory UserPendingChanges.fromJson(Map<String, dynamic> json) {
  return UserPendingChanges(
    consoleAccess: json['consoleAccess'] as bool?,
    groups: (json['groups'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    pendingChange: (json['pendingChange'] as String?)?.toChangeType(),
  );
}