protocolName method

String? protocolName(
  1. ModelMapping mapping
)

Read model action protocol name.

Implementation

String? protocolName(ModelMapping mapping) {
  final json = mapping.toJson();
  final action = json[name];
  if (action is String) return action;

  return null;
}