PermittedOperationsResponse.fromJson constructor

PermittedOperationsResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PermittedOperationsResponse.fromJson(Map<String, Object?> json) {
  return PermittedOperationsResponse(
    operations: (json[r'operations'] as List<Object?>?)
            ?.map((i) => PermittedOperationsResponseOperationsItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}