getNamedArguments method

Map<Symbol, dynamic> getNamedArguments (
  1. ClassMirror cm,
  2. JsonMap jsonMap,
  3. [DeserializationOptions options]
)

Implementation

Map<Symbol, dynamic> getNamedArguments(ClassMirror cm, JsonMap jsonMap,
    [DeserializationOptions options]) {
  final result = <Symbol, dynamic>{};

  enumerateConstructorParameters(
      cm, jsonMap, options, (param) => param.isNamed,
      (param, name, jsonName, classMeta, meta, value, TypeInfo typeInfo) {
    if (!isFieldIgnored(value, classMeta, meta, options)) {
      result[Symbol(name)] = value;
    }
  });
  return result;
}