MethodInfo.fromJson constructor

MethodInfo.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory MethodInfo.fromJson(Map<String, dynamic> jsonSerialization) {
  return MethodInfo(
    id: jsonSerialization['id'] as int?,
    endpoint: jsonSerialization['endpoint'] as String,
    method: jsonSerialization['method'] as String,
  );
}