Converts native maps to class with fields