Grant.fromJson constructor

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

Implementation

factory Grant.fromJson(Map<String, dynamic> json) {
  return Grant(
    grantee: json['Grantee'] != null
        ? Grantee.fromJson(json['Grantee'] as Map<String, dynamic>)
        : null,
    permission: (json['Permission'] as String?)?.toPermission(),
  );
}