ForeignKeyCommand.fromJson constructor

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

Implementation

factory ForeignKeyCommand.fromJson(Map<String, Object?> json) =>
    ForeignKeyCommand._(
      kind: ForeignKeyCommandKind.values.byName(json['kind'] as String),
      name: json['name'] as String,
      definition: json['definition'] == null
          ? null
          : ForeignKeyDefinition.fromJson(
              json['definition'] as Map<String, Object?>,
            ),
    );