CreatePermissionRequest.fromJson constructor

CreatePermissionRequest.fromJson(
  1. Object? j
)

Implementation

factory CreatePermissionRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CreatePermissionRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    permission: switch (json['permission']) {
      null => null,
      Object $1 => Permission.fromJson($1),
    },
  );
}